#include "PanelHelper.hpp"
#include <string>

namespace
{
   std::string panelPath;
}
void SetPanelPath( const char* fname) {

   char* slashpos = strchr( const_cast<char*>(fname), '/');
   while( slashpos != NULL )
   {
      char* nextpos = strchr( slashpos + 1, '/');
      if( nextpos == NULL)	break;
      slashpos = nextpos;	
   }
   if( slashpos != NULL )
      panelPath.assign(fname, slashpos+1);
   else
      panelPath = fname;
}
const char* GetPanelPath()
{
   return panelPath.c_str();
}